package com.dingding.transfer.stamper.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;


/**
 * 指纹清空 回调数据对象
 * @author zhf
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class FingerAddRes extends BaseEntity {
	private Integer id;			//印控系统数据库指纹记录id
	private boolean status;		//true:录入成功 false：录入失败
	private String userId;		//指纹所属人ID

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		FingerAddRes that = (FingerAddRes) o;
		return status == that.status && Objects.equals(id, that.id) && Objects.equals(userId, that.userId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, status, userId);
	}
}
